package com.share.wechat.core.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 核心分类归档
 * Created by er on 2017/11/17.
 * 修复了命名规范
 */
@Entity
@Table(name = "WEB_PRD_CATEGORY")
public class Category implements Serializable{
    /**
     * id
     */
    @Id
    private String id;
    /**
     * 级别 最顶级的默认是0 最大三级
     */
    @Column(name = "I_LEVEL")
    private int level;
    /**
     * title
     */
    private String title;
    /**
     * 描述
     */
    @Column(name = "DESCP")
    private String desc;
    /**
     * 核心
     */
    private String detailId;
    /**
     * 创建时间
      */


    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 创建人
     */
    private String createOne;
    /**
     * 修改人
     */
    private String updateOne;

    /**
     * 当前的id
     */
    private int oneId;
    /**
     * 父id
     */
    private int pId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateOne() {
        return createOne;
    }

    public void setCreateOne(String createOne) {
        this.createOne = createOne;
    }

    public String getUpdateOne() {
        return updateOne;
    }

    public void setUpdateOne(String updateOne) {
        this.updateOne = updateOne;
    }

    public int getOneId() {
        return oneId;
    }

    public void setOneId(int oneId) {
        this.oneId = oneId;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id='" + id + '\'' +
                ", level=" + level +
                ", title='" + title + '\'' +
                ", desc='" + desc + '\'' +
                ", detailId='" + detailId + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createOne='" + createOne + '\'' +
                ", updateOne='" + updateOne + '\'' +
                ", oneId=" + oneId +
                ", pId=" + pId +
                '}';
    }
}
